"""
try:
    可能发送异常代码块
except Exception:
    捕获到异常执行代码块
"""

try:
    num = int(input('数字: '))
    result = num / 0
except Exception as e:
    print(e)   # division by zero